/*
 * AuxiliaryFunctions.h
 *
 *  Created on: Jan 2, 2012
 *      Author: allan
 */

#ifndef AUXILIARYFUNCTIONS_H_
#define AUXILIARYFUNCTIONS_H_

// C++ includes
#include <cmath>

inline bool 
AlmostEqual(double a, double b, double tolerance = 1.0E-16)
{
	return std::abs(a-b) < tolerance;
}

#endif /* AUXILIARYFUNCTIONS_H_ */
